<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>栏目列表</title>
	<hdjs/>
</head>
<body>
	<div class='wrap'>
		<div class='menu_list'>
			<ul>
				<li>
					<a href="{|U:'add',array('cat_id'=>Q('cat_id'))}">添加栏目</a>
				</li>
				<li>
					<a href="{|U:'updateCache'}">更新缓存</a>
				</li>		
			</ul>
		</div>
		<div>
			<table class='table2'>
				<thead>
					<tr>
						<td class='w50'>CID</td>
						<td>栏目名称</td>
						<td>显示</td>
						<td class='w100'>操作</td>
					</tr>
				</thead>
				<tbody>
					<list from="$data" name="$d">
						<tr>
							<td>{$d.cid}</td>
							<td>{$d._name}</td>
							<td>{$d.is_show_text}</td>
							<td>
								<a href="{|U:'edit',array('cid'=>$d['cid'])}">编辑</a> |
								<a href="{|U:'del',array('cid'=>$d['cid'])}" onclick='return confirm("确定删除当前栏目及其所有子栏目吗?")'>删除</a>
							</td>
						</tr>
					</list>
				</tbody>
			</table>
		</div>
	</div>
</body>
</html>